package hut.ai.team.resource;

import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class ImageData {
	private static TextureAtlas mAtlas;
	private static AssetManager mAsset;
	
	public static TextureRegion mCanMove;
	
	public static void LoadImageData(){
		mAsset = new AssetManager();
		mAsset.load("data/coup.pack", TextureAtlas.class);
		mAsset.finishLoading();
		mAtlas = mAsset.get("data/coup.pack", TextureAtlas.class);
		mCanMove = getTextureRegion("canmove");
	}
	
	public static TextureRegion getTextureRegion(String name){
		if (mAtlas != null) {
			return mAtlas.findRegion(name);
		} else {
			return null;
		}
	}
}
